Sets the graphics port and device for drawing.
pascal ComponentResult GraphicsImportSetGWorld (
GraphicsImportComponent ci,
CGrafPtr port,
GDHandle gd);
Returns the current graphics port and device for drawing.
pascal ComponentResult GraphicsImportGetGWorld (
GraphicsImportComponent ci,
CGrafPtr *port,
GDHandle *gd);
pascal ComponentResult GraphicsImportDraw (GraphicsImportComponent ci);
This function draws the image currently in use by the graphics import component to the graphics port and device specified by the GraphicsImportSetGWorld function. The GraphicsImportDraw function takes into account all settings you have specified for the image, such as the source rectangle, transformation matrix, clipping region, graphics mode, and image quality.
The base graphics importer's Draw function uses the results of GraphicsImportGetImageDescription and GraphicsImportGetDataOffsetAndSize to create a decompression sequence and uses it to draw the image. Subsequent draw operations with the same connection may reuse the decompression sequence. Other graphics importers may override this behavior.
| Previous | Chapter Contents | Chapter Top | Next |